package com.foundersoftware.commons.event;

/**
 * This enumeration class represents the task event type,such as task created,tasked assigned,etc.
 * 
 * @author wuhongjun
 *
 */

public enum TaskEventType {


  TaskCreated(1,"TaskCreated","TaskCreated","task.event.taskCreated"),
  TaskAssigned(2,"TaskAssigned","TaskAssigned","task.event.taskAssigned"),
  TaskClaimed(3,"TaskClaimed","TaskClaimed","task.event.taskClaimed"),
  TaskReturned(4,"TaskReturned","TaskReturned","task.event.taskReturned"),
  TaskStarted(5,"TaskStarted","TaskStarted","task.event.taskStarted"),
  TaskSplited(6,"TaskSplited","TaskSplited","task.event.taskSplited"),
  TaskCombinated(7,"TaskCombinated","TaskCombinated","task.evnet.taskCombinated"),
  TaskAborted(8,"TaskAborted","TaskAborted","task.event.taskAborted"),
  TaskSuspended(9,"TaskSuspended","TaskSuspended","task.event.taskSuspended"),
  TaskResumed(10,"TaskResumed","TaskResumed","task.event.taskResumed"),
  TaskStoped(11,"TaskStoped","TaskStoped","task.event.taskStoped"),
  TaskCompleted(12,"TaskCompleted","TaskCompleted","task.event.taskCompleted");
  
  private int id;
  private String name;
  private String displayName;
  private String displayNameKey;

  
 private TaskEventType(int id, String name, String displayName, String displayNameKey) {
	this.id = id;
	this.name = name;
	this.displayName = displayName;
	this.displayNameKey = displayNameKey;
}

public String getDisplayName() {
	return displayName;
}

public void setDisplayName(String displayName) {
	this.displayName = displayName;
}

public String getDisplayNameKey() {
	return displayNameKey;
}

public void setDisplayNameKey(String displayNameKey) {
	this.displayNameKey = displayNameKey;
}

public int getId() {
	return id;
}

public void setId(int id) {
	this.id = id;
}

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

private TaskEventType(){};
}
